home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000…tember: Reference Library / Dev.CD Sep 00 RL Disk 1.toast / mac / What's New / • What was new 08⁄00 / Sample Code / Interapplication Comm / MoreOSL / MoreDialogs / MoreDialogs.h < prev   
Encoding:
C/C++ Source or Header  |  2000-06-23  |  2.7 KB  |  80 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        MoreDialogs.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:    Pete Gontier
  7.  
  8.     Copyright:    Copyright (c) 1998 Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.  
  20.          <6>     20/3/00    Quinn   Fix prototype for GetDialogItemString.
  21.          <5>     1/22/99    PCG     TARGET_CARBON
  22.          <4>      1/7/99    PCG     add ToggleDialogItemCheckBox
  23.          <3>      1/7/99    PCG     add MoreAppendDialogItemList
  24.          <2>    11/11/98    PCG     fix headers
  25.          <1>    11/10/98    PCG     first big re-org at behest of Quinn
  26.  
  27.     Old Change History (most recent first):
  28.  
  29.          <7>    10/11/98    Quinn   Convert "MorePrefix.h" to "MoreSetup.h".
  30.          <6>      9/9/98    PCG     re-work import and export pragmas
  31.          <5>      9/1/98    PCG     Universal Headers 3.2
  32.          <4>     7/24/98    PCG        coddle linker (C++, CFM-68K)
  33.          <3>     7/24/98    PCG        add MoveableModalDialog
  34.          <2>     7/24/98    PCG        eliminate dependency on 'qd'
  35.          <1>     6/16/98    PCG     initial checkin
  36. */
  37.  
  38. #pragma once
  39.  
  40. #include "MoreSetup.h"
  41.  
  42. #include <Dialogs.h>
  43.  
  44. enum { kDialogItemIndexNone = -1 };
  45.  
  46. #ifdef __cplusplus
  47.     extern "C" {
  48. #endif
  49.  
  50. #pragma import on // for clients
  51. #pragma export on // for building a library
  52.  
  53. #if UNIVERSAL_INTERFACES_VERSION < 0x0320
  54.  
  55.     extern pascal OSErr AppendDialogItemList (DialogPtr dialog, SInt16 ditlID, DITLMethod method)
  56.         THREEWORDINLINE (0x303C, 0x0412, 0xAA68);
  57.  
  58. #endif // UNIVERSAL_INTERFACES_VERSION < 0x0320
  59.  
  60. pascal void            SaferShortenDITL            (DialogPtr, DialogItemIndex);
  61. pascal DialogPtr    MoreGetNewDialog            (short dlogResID);
  62. pascal void            SetDialogItemString            (DialogPtr, DialogItemIndex, ConstStringPtr);
  63. pascal void            GetDialogItemString            (DialogPtr, DialogItemIndex, Str255);
  64. pascal void            SelectAllDialogItemText        (DialogPtr, DialogItemIndex);
  65. pascal void            MoveableModalDialog            (ModalFilterUPP, short *itemHit);
  66. pascal Boolean        ToggleDialogCheckBox        (DialogPtr, DialogItemIndex);
  67. pascal OSErr        MoreAppendDialogItemList    (DialogPtr, DialogItemIndex, DITLMethod);
  68.  
  69. #pragma import reset // for clients
  70. #pragma export reset // for building a library
  71.  
  72. #if !TARGET_CARBON
  73. #    define SetPortDialogPort(x)        SetPort(x)
  74. #    define GetDialogFromWindow(x)    (x)
  75. #endif
  76.  
  77. #ifdef __cplusplus
  78.     }
  79. #endif
  80.